import logo from './logo.svg';
import './App.css';
import {routes} from './router/IndexRouter'
import { renderRoutes } from 'react-router-config'
import { createStore } from "redux"
import { Provider } from "react-redux"
import reducer from "./store/reducer"
import { 
  BrowserRouter,
  HashRouter, 
  Route, 
  Link 
} from 'react-router-dom'
const store = createStore(reducer)

function App() {
  return (  
    <div className="App">
      {/* <Provider store={store}> */}
        <HashRouter>
          {renderRoutes(routes)}
        </HashRouter>
      {/* </Provider> */}
    </div>
  );
}

export default App;
